<#import "/common/function.ftl" as fn>
<@fn.header _title="">
<script charset="utf-8" src="${base}/resources/common/editor/kindeditor.js"></script>
<script charset="utf-8" src="${base}/resources/common/editor/lang/zh_CN.js"></script>
<script type="text/javascript" src="${base}/resources/script/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/script/jquery.validate.methods.js"></script>
<script type="text/javascript" src="${base}/resources/script/date97/WdatePicker.js"></script>
<script type="text/javascript">
$(function() {
	var $validateErrorContainer = $("#validateErrorContainer");
	var $validateErrorLabelContainer = $("#validateErrorContainer ul");
	var $validateForm = $("#validateForm");
	
	// 表单验证
	$validateForm.validate({
		errorContainer: $validateErrorContainer,
		errorLabelContainer: $validateErrorLabelContainer,
		wrapper: "li",
		errorClass: "validateError",
		ignoreTitle: true,
		rules: {
			"fileName": "required",
		},
		messages: {
			"fileName": "请填写模板名称",
		},
		submitHandler: function(form) {
			$(form).find(":submit").attr("disabled", true);
			form.submit();
		}
	});	
});

</script>
</@fn.header>
<body style="width:100%" class="list">
<form id="validateForm" action="create" method="post">
	<table class="table3" id="userListTable">
		<tr>
			<th>
				模板名称: 
			</th>
			<td>
				<input type="text" name="fileName" class="formText" value="" />
				<label class="requireField">*</label>
			</td>
		</tr>
	</table>
	<input type="submit" class="button" value="确 定" />
	<input type="button" class="button" value="返 回" onclick="javascript:history.go(-1);" />
</form>
</body>
</html>